package com.wzh.yebServe.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.wzh.yebServe.pojo.Employee;
import com.wzh.yebServe.pojo.RespPageBean;
import com.wzh.yebServe.pojo.ResultBean;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.time.LocalDate;
import java.util.List;

/**
 * @Author wzh
 * @create 2022/11/19 19:32
 * @Description:
 */
public interface IEmployeeService extends IService<Employee> {
    RespPageBean getEmployeeByPage(Integer currentPage, Integer size, Employee employee, LocalDate[] beginDateScope);

    ResultBean maxWorkId();

    ResultBean addEmp(Employee employee);

    ResultBean updateEmployee(Employee employee);

    ResultBean deleteEmployee(Integer id);

    List<Employee> getEmployee(Integer id);

    RespPageBean getEmployeeWithSalary(Integer currentPage, Integer size);

    void exportEmp(HttpServletResponse response) throws IOException;

    ResultBean importEmp(MultipartFile file);
}
